package edu.zjut.hjg.saas.web.model.form;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;

public class UpdateTenantForm {

    @Email
    private String email;

    @Length(min = 0, max = 50)
    private String contact;

    @Pattern(regexp = "^[0-9/-]*$")
    private String phone;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UpdateTenantForm [contact=" + contact + ", email=" + email + ", phone=" + phone
                + "]";
    }
}
